package com.beehoo.dcportal.admin.dao;

import java.util.List;
import java.util.Map;

import com.beehoo.dcportal.common.base.BaseException;
import com.beehoo.dcportal.model.ComplaintBean;

public interface ComplaintDao {

	/**
	 * 查询投诉上报列表
	 * 
	 * @param paramMap
	 * @return
	 * @throws BaseException
	 */
	public List<ComplaintBean> queryComplaints(Map<String, Object> paramMap)
			throws BaseException;
	
	/**
	 * 查询投诉上报列表总数
	 * 
	 * @param paramMap
	 * @return
	 * @throws BaseException
	 */
	public int queryComplaintCount(Map<String, Object> paramMap)
			throws BaseException;

	/**
	 * 查询一条投诉上报
	 * 
	 * @param paramMap
	 * @return
	 * @throws BaseException
	 */
	public ComplaintBean queryComplaint(Map<String, Object> paramMap)
			throws BaseException;

	/**
	 * 审核投诉上报,创建事务
	 * 
	 * @param commentBean
	 * @return
	 * @throws BaseException
	 */
	public void auditComplaint(ComplaintBean complaintBean) throws BaseException;
	
	/**
	 * 删除投诉上报
	 * @param commentId
	 * @return
	 * @throws BaseException
	 */
	public int delComplaint(String queId) throws BaseException;
	
	/**
	 * 获取事务编号
	 * @return
	 * @throws BaseException
	 */
	public String queryAffairId() throws BaseException;

}
